<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015/6/3
 * Time: 13:48
 */
//error_reporting(0);
session_start();

$mobile = is_numeric($_POST['mobile']) ? $_POST['mobile'] : '';
if(empty($mobile)){
    exit('Error');
}

$res = $_SESSION['res'];
$today = date('Ymd');

$file = 'result/'.$mobile.'_'.$today.'.php';
if(is_file($file)){
    exit('has');
}
if(file_put_contents($file, "$res,", FILE_APPEND)){
    exit('ok');
}
